package day17.tarena.GUI;
import java.io.FileInputStream;
public class ReadFile {
	public static void main(String[] args) throws Exception{  //throw是一个语句，throws只能跟在方法和构造的参数与大括号之间。
			FileInputStream fis = new FileInputStream("/home/hfsd0909/register.txt");
			byte[] b = new byte[1024]; 
			String result = "";
			while (true){
				int num = fis.read(b);	
				if(num == -1) break;
				result  = result + new String(b, 0 ,num);
			}
				fis.close();
				String[] s1 = result.split("\\;");
				for(int i =0; i<s1.length; i++){
					String[] s2 = s1[i].split("\\,");
					for(int j=0; j<s2.length; j++){
				}	System.out.println(s2[0]);
			}
		}
	}

